﻿#region License
// (c) Garry McGlennon 2009
// 
// This project is made available under the Microsoft Public License (Ms-PL)
// Code is provided as is and with no warrenty – Use at your own risk
// 
// View the project and the latest code at http://dnpframework.codeplex.com/
// 
// All other rights reserved.
// 
// blog: www.dotNetProfessional.com/blog/
#endregion
using dnp.Framework.Scripting;

namespace dnp.DomainModeler
{
    public class ViewPropertyCollection : System.Collections.ObjectModel.Collection<Property>
    {
        public void AddRange(System.Collections.IEnumerable collection)
        {
            foreach (Property entity in collection)
                this.Add(entity);
        }

        public string ToString(string expression, string joiner)
        {
            return new TextList(this, expression).ToString(joiner);
        }

    }
}
